package cn.tedu.egmvc8.mapper;

import cn.tedu.egmvc8.pojo.entity.Notice;
import cn.tedu.egmvc8.pojo.vo.NoticeDetailInfoVO;
import cn.tedu.egmvc8.pojo.vo.NoticeListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NoticeMapper {
    int insert(Notice notice);
    List<NoticeListVO> list(@Param("title") String title, @Param("type") Integer type);
   NoticeDetailInfoVO select(Long id);
}
